package com.atguigu.ggkt.handler;

import com.atguigu.ggkt.result.ResultCodeEnum;


public class GgktException extends RuntimeException {
    private Integer code;
    private String msg;



    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    public GgktException(ResultCodeEnum resultCodeEnum) {
        super(resultCodeEnum.getMessage());
        this.code = resultCodeEnum.getCode();
        this.msg = resultCodeEnum.getMessage();
    }
}